home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / sqrt.z / sqrt
Text File  |  1998-10-30  |  5KB  |  120 lines

  1. SQRT(3M)                                               Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      SSQQRRTT, DDSSQQRRTT, CCSSQQRRTT, CCDDSSQQRRTT - Computes square root
  6.  
  7. SSYYNNOOPPSSIISS
  8.      UNICOS and UNICOS/mk systems:
  9.  
  10.      SSQQRRTT (([XX==]_x))
  11.      DDSSQQRRTT (([XX==]_x))
  12.      CCSSQQRRTT (([XX==]_x))
  13.  
  14.      UNICOS and IRIX systems:
  15.  
  16.      CCDDSSQQRRTT (([XX==]_x))
  17.  
  18. IIMMPPLLEEMMEENNTTAATTIIOONN
  19.      UNICOS, UNICOS/mk, and IRIX systems
  20.  
  21. SSTTAANNDDAARRDDSS
  22.      Fortran 90
  23.      CCDDSSQQRRTT is a compiler extension to Fortran 90.
  24.  
  25. DDEESSCCRRIIPPTTIIOONN
  26.      SSQQRRTT is the generic function name.  These functions are elemental
  27.      functions for the CF90 compiler.
  28.  
  29.      A vector version of this intrinsic exists on UNICOS and UNICOS/mk
  30.      systems.  On UNICOS/mk systems, the vector version of this intrinsic
  31.      is used when --hh vveeccttoorr33 (C compiler) or --OO vveeccttoorr33 or --OO33 (Fortran
  32.      compiler) has been specified on the compiler command line.
  33.  
  34.      The entry point CCDDSSQQRRTT is provided for support in other languages.  It
  35.      is not recognized as an intrinsic function; therefore, you must use
  36.      the CCDDIIRR$$ VVFFUUNNCCTTIIOONN directive to allow vectorization.
  37.  
  38.      CCDDSSQQRRTT is called implicitly by the Fortran 90 compiler as a result of
  39.      a generic SSQQRRTT call with a complex double-precision argument.
  40.                                    1/2
  41.      These functions evaluate _y = _x   .
  42.  
  43.    CCAALL RReeggiisstteerr UUssaaggee ((CCrraayy RReesseeaarrcchh SSyysstteemmss OOnnllyy))
  44.      Scalar SSQQRRTT:  SSQQRRTT%% (call-by-register)
  45.           on entry   (S1) = argument
  46.           on exit    (S1) = result
  47.  
  48.      Vector SSQQRRTT:  %%SSQQRRTT%% (call-by-register)
  49.           on entry   (V1) = argument vector
  50.           on exit    (V1) = result vector
  51.  
  52.      Scalar DDSSQQRRTT:  DDSSQQRRTT%% (call-by-register)
  53.           on entry   (S1) and (S2) = argument
  54.           on exit    (S1) and (S2) = result
  55.      Vector DDSSQQRRTT:  %%DDSSQQRRTT%% (call-by-register)
  56.           on entry   (V1) and (V2) = argument vector
  57.           on exit    (V1) and (V2) = result vector
  58.  
  59.      Scalar CCSSQQRRTT:  CCSSQQRRTT%% (call-by-register)
  60.           on entry   (S1) and (S2) = argument
  61.           on exit    (S1) and (S2) = result
  62.  
  63.      Vector CCSSQQRRTT:  %%CCSSQQRRTT%% (call-by-register)
  64.           on entry   (V1) and (V2) = argument vector
  65.           on exit    (V1) and (V2) = result vector
  66.  
  67.    AArrgguummeenntt RRaannggee
  68.      SSQQRRTT,, DDSSQQRRTT::
  69.                                                          2450
  70.           0 <= _x < infinity (infinity is approximately 10    )
  71.                                                             308
  72.           On UNICOS/mk systems, infinity is approximately 10
  73.  
  74.      CCSSQQRRTT::
  75.  
  76.           |_x | < infinity, |_x | < infinity
  77.             r                i
  78.      CCDDSSQQRRTT::
  79.  
  80.           |_x | < infinity, |_x | < infinity
  81.             r                i
  82. NNOOTTEESS
  83.      CCDDSSQQRRTT is an outmoded routine for the CF90 compiler.  Refer to the
  84.      _F_o_r_t_r_a_n _L_a_n_g_u_a_g_e _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, _V_o_l_u_m_e _3, publication SR-3905, for
  85.      information about outmoded features and their preferred standard
  86.      alternatives.
  87.  
  88.      The name of the SSQQRRTT, DDSSQQRRTT, and CCSSQQRRTT intrinsic can be passed as an
  89.      argument.  The name of the CCDDSSQQRRTT intrinsic cannot be passed as an
  90.      argument.
  91.  
  92. RREETTUURRNN VVAALLUUEESS
  93.      SSQQRRTT returns the real square root of its real argument.
  94.  
  95.      DDSSQQRRTT returns the double-precision square root of its double-precision
  96.      argument.
  97.  
  98.      CCSSQQRRTT returns the complex square root of its complex argument.
  99.  
  100.      CCDDSSQQRRTT returns the complex double-precision square root of its complex
  101.      double-precision argument.
  102.  
  103.      On CRAY T90 systems that support IEEE arithmetic, the following return
  104.      values occur:
  105.  
  106.           SSQQRRTT((0)) = 0
  107.  
  108.           SSQQRRTT((-0)) = -0
  109.  
  110.           SSQQRRTT((_x)) = NaN if _x < 0
  111.  
  112.           SSQQRRTT((NaN)) = NaN
  113.  
  114.           SSQQRRTT(( infinity ) = infinity
  115.  
  116. SSEEEE AALLSSOO
  117.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  118.      printed version of this man page.
  119.  
  120.